package com.whq.thrift.api.web.base.serviceconf.service;

import java.util.List;
import java.util.Map;

import com.whq.thrift.api.web.base.serviceconf.db.ModuleInstance;

public interface ModuleInstanceService {
	
	public void addRecord(ModuleInstance record);
    
    public List<ModuleInstance> findRecordsByMap(String moduleId, int beginIndex, int maxCount);
    
    public void updateRecord(ModuleInstance record);
    
    public void deleteRecord(String id);
    
    public int findRecordCount(String moduleId);
    
//    public ModuleInstance findRecordById(String id);
    
    public List<ModuleInstance> getAllRecords();
    
    public List<ModuleInstance> getRecordsByStatus(String moduleId, int status);

}
